package cc.customer.cusDynamic.services;

import cc.customer.aiEmport.damain.CAiEmp;
import cc.customer.bigEmport.damain.BigEmp;
import cc.customer.common.domain.ResponseBo;
import cc.customer.common.service.IService;
import cc.customer.cusDynamic.domain.CusDynamic;
import cc.customer.cusDynamic.domain.ExEmpRecevice;
import cc.customer.onschool.domain.OnSchoolResource;
import cc.customer.system.domain.MyUser;

import java.util.List;

public interface CusDynamicService extends IService<CusDynamic> {

   void inserDynamic(List<String> list, CusDynamic cus);

   int deleteDynamic(List<String> ids); //删除记录
   /**添加客户跟进*/
   ResponseBo addFollow(CusDynamic cusDynamic, String userid);

   /**APP添加客户跟进*/
   ResponseBo addAppFollow(CusDynamic cusDynamic, String userid);

   /**查找客户跟进详情*/
   ResponseBo getDetailFollow(CusDynamic cusDynamic, String userid);


   /**查找客户跟进详情*/
   ResponseBo appGetDetailFollow(CusDynamic cusDynamic, String userid);
   /**查询列表**/
   ResponseBo getFollowList(CusDynamic cusDynamic);
   /**根据当前登录人加载跟进记录*/
   List<CusDynamic> selectCusFollow(CusDynamic cus);
   /**查沟通记录当天的所有内容*/
   ResponseBo selectAllRecordData(MyUser user);
   /**查询推广资源领取的记录**/
   List<CusDynamic> getExEmpReceData(CusDynamic cusDynamic);

   /**查询大资源分配的记录**/
   List<CusDynamic> getBigEmpReceData(CusDynamic cusDynamic);

   /**导出记录**/
   List<ExEmpRecevice> getExAllExportData(String ids,MyUser user);
   /**查询资源转让的记录**/
   List<CusDynamic> getCusTransData(CusDynamic cusDynamic);
   /**导出领取的记录**/
   List<ExEmpRecevice> getExAllTranExportData(String ids,MyUser user);
   /**批量插入大资源分配的信息**/
   int batchInsertBigEmpDisture(List<String> ids, BigEmp bigEmp) throws Exception;
   /**批量插入AI资源分配的信息**/
   int batchInsertAiEmpDisture(List<String> ids, CAiEmp cAiEmp) throws Exception;
   /**批量插入网校资源分配信息**/
   int batchInsertWxEmpDisture(List<String> ids, OnSchoolResource onSchoolResource) throws Exception;
   /**增加推广手动分配记录**/
   int insertExEmpDis(String userid,String uuid) throws Exception;
   /**查询当前用户今天领取的公海资源的数据大小**/
   int selectGongHaiResourceOverRevice(String userid);
   /**查询当前任务得客户阶段更改时间**/
   CusDynamic selectExempChangeStatus(String extuuid);
   /**获取个人 在一个时间端 收到的客户资源多少**/
   List<CusDynamic> selectCusDynamicByTimeAndUser(String startime,String endtime,String userid);
   /**获取有录音的电话记录**/
   List<CusDynamic>  selectDialogByTimeAndUser(String startime,String endtime,String userid);

   /**获取跟进记录**/
   ResponseBo getFollowListByType(CusDynamic dynamic);
}
